import { setToken, setUserId } from '@/utils/storage'
export default {
  namespaced: true,
  state () {
    return {
      token: null,
      userId: null
    }
  },
  mutations: {
    setUserToken (state, token) {
      state.token = token
      setToken(token)
    },
    setUserID (state, id) {
      state.userId = id
      setUserId(id)
    }
  }
}
